<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 

class Block_Admin_Page_Notice extends Core_Block {

	public function getNotices() {
		return App::objectSingleton('Entity_Session_Admin')->getMessages(true);
	}
	
	public function getClass($type) {
		switch ($type) {
			case Entity_Session_Admin::ERROR_MSG:
				return 'alert-error';
				break;
			case Entity_Session_Admin::SUCCESS_MSG:
				return 'alert-success';
				break;
		}
		return '';
	}
}

